﻿using Basic.HrRemoteModel.DeptChange;
using Basic.HrRemoteModel.DeptChange.Model;
using Basic.HrService.Interface;
using WeDonekRpc.Client;
using WeDonekRpc.Client.Interface;

namespace Basic.HrService.RpcEvent
{
    internal class DeptChangeEvent : IRpcApiService
    {
        private readonly IDeptChangeService _Service;
        public DeptChangeEvent ( IDeptChangeService service )
        {
            this._Service = service;
        }
        public ChangeDeptTree GetChangeDept ( GetChangeDept obj )
        {
            return this._Service.GetDept(obj.DeptId, obj.IsUnit);
        }
        public PagingResult<DisbandDeptEmp> QueryDisbandDeptEmp ( QueryDisbandDeptEmp obj )
        {
            return this._Service.Query(obj.Arg, obj.ToBasicPage());
        }

    }
}
